Ext.define('TS.view.general.aclrole.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.aclroleform',
    title : 'Rola Acl',
	url:URL.general.form.aclrole,
	items:[
		{xtype:'hidden',name:'acl_role_id'},
		{xtype:'text',fieldLabel:'acl_role_name',name:'acl_role_name'},
		{xtype:'combo',fieldLabel:'parent_id',name:'parent_id',store:Dict.aclrole},
		{xtype:'text',fieldLabel:'order',name:'order'}
        
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.aclrole.load();
			Util.store('AclRole').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.general.del.aclrole
		}
	}]
});